<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%> 
<jsp:useBean id="bean" class="com.lmpop.frame.util.RandomID" scope="page"/>
<%@ page import="com.lmpop.trade.ts_category.*" %>

<%
	String pri_key = bean.GenTradeId();
	Ts_categoryInfo ts_categoryInfo = new Ts_categoryInfo();
	String select = ts_categoryInfo.getSelCatByTLevel("10", "1");
%>

<html>
  <head>
    <title>培训报名管理</title>
	<link href="/program/admin/index/css/style.css" rel="stylesheet" type="text/css">
	<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/engine.js'></script>
	<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/util.js'></script>
	<script type='text/javascript' src='<%=request.getContextPath()%>/dwr/interface/Ts_categoryInfo.js'></script> 
	<script type="text/javascript" src="index.js"></script>
	<script language="javascript" type="text/javascript" src="/program/plugins/calendar/WdatePicker.js"></script>
</head>

<body>
	<h1>新增培训报名</h1>
	
	
	<form action="/doTradeReg.do" method="post" name="addForm">
	
	<input name="trade_id" id="trade_id" type="hidden" value="<%=pri_key%>"/>

	<table width="100%" cellpadding="0" cellspacing="1" border="0" class="listtab">
		
		<tr>
			<td align="right" width="15%">
				所报科目<font color="red">*</font>
			</td>
			<td>
				<select name="sort1" id="sort1" onChange="setSecondClass(this.value);">
					<option value="">请选择</option>
				    <%=select%>
				</select>
				<select name="sort2" id="sort2"  style="display:none" onChange="setTherdClass(this.value);">
					<option value="">请选择</option>
				</select>
				<select name="sort3" id="sort3"  style="display:none">
					<option value="">请选择</option>
				</select>
				<input type="hidden" name="class_attr" id="class_attr" />
			</td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				姓名<font color="red">*</font>
			</td>
			<td><input name="name" id="name" size="20" maxlength="20" type="text" /></td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				性别:
			</td>
			<td><input name="sex" type="radio" value="1" checked />男&nbsp;<input name="sex" type="radio" value="2"/>女</td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				出生年月:
			</td>
			<td><input name="birth" id="birth" size="10" maxlength="10" type="text" class="Wdate" onfocus="WdatePicker({dateFmt:'yyyy年M月',minDate:'1900-1',maxDate:'2010-12'})"/></td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				身份证号码:
			</td>
			<td><input name="idnumber" id="idnumber" size="20" maxlength="20" type="text" /></td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				毕业学校:
			</td>
			<td><input name="college" id="college" size="50" maxlength="50" type="text" /></td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				现在学习或工作单位:
			</td>
			<td><input name="workspace" id="workspace" size="50" maxlength="100" type="text" /></td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				通讯地址:
			</td>
			<td><input name="addr" id="addr" size="50" maxlength="100" type="text" /></td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				联系电话:
			</td>
			<td><input name="phone" id="phone" size="20" maxlength="20" type="text" /></td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				手机<font color="red">*</font>
			</td>
			<td><input name="cellphone" id="cellphone" size="20" maxlength="20" type="text" /></td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				E-mail:
			</td>
			<td><input name="email" id="email" size="50" maxlength="60" type="text" /></td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				QQ:
			</td>
			<td><input name="qq" id="qq" size="20" maxlength="20" type="text" /></td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				MSN:
			</td>
			<td><input name="msn" id="msn" size="20" maxlength="20" type="text" /></td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				个人工作简历:
			</td>
			<td>
				<textarea name="selfdesc" id="selfdesc" rows="7" cols="60"></textarea>
			</td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				个人荣誉:
			</td>
			<td>
				<textarea name="selfintro" id="selfintro" rows="7" cols="60"></textarea>
			</td>
		</tr>
		
		<tr>
			<td align="right" width="15%">
				个人留言:
			</td>
			<td>
				<textarea name="leaveword" id="leaveword" rows="7" cols="60"></textarea>
			</td>
		</tr>
		
	</table>
	
	<table width="100%" cellpadding="0" cellspacing="0" border="0">
		<tr>
			<td align="center">
				<input type="hidden" name="bpm_id" value="1997" />
				<input name="state" id="state" value="c" type="hidden" />
				<input type="submit" class="buttoncss" name="tradeSub" value="提交" onclick="return checkSub();"/>&nbsp;&nbsp;
				<input type="button" class="buttoncss" name="tradeRut" value="返回" onclick="window.location.href='index.jsp';"/>
			</td>
		</tr>
	</table>
	</form>
</body>

</html>
